using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class GiaoVien_DanhSachLuanVan : System.Web.UI.Page
{
    LuanVan_BUS lvBus = new LuanVan_BUS();
    DotBUS dBus = new DotBUS();
    String MaGiaoVien = "b";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           // MaGiaoVien = Request.QueryString["MaGiaoVien"];
            ddlDot.DataSource = dBus.LayMang_Dot();
            ddlDot.DataTextField = "NamThang";
            ddlDot.DataValueField = "MaDot";
            ddlDot.DataBind();

            gridLuanVan.DataSource = lvBus.LuanVan_Select(MaGiaoVien, 0);
            gridLuanVan.DataBind();
        }
    }
    protected void btnXem_Click(object sender, EventArgs e)
    {
        gridLuanVan.DataSource = lvBus.LuanVan_Select(MaGiaoVien, int.Parse(ddlDot.SelectedValue.ToString()));
        gridLuanVan.DataBind();
    }
}
